<!DOCTYPE html> 
<html> 
<head> 
	<meta  charset="utf-8" />
	<title>{$title}</title>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/js/jquery.validate.js"></script>
	<!-- <script src="__PUBLIC__/js/jquery.metadata.js"></script> -->
    <script src="__PUBLIC__/js/messages_cn.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Css/jquery.validate.css" />
	<link rel="stylesheet" href="__PUBLIC__/Css/jquery.mobile-1.2.0.css" />		
	<script src="__PUBLIC__/js/jquery.mobile-1.2.0.js"></script>
    <script type="text/javascript">
      $().ready(function() {
    	 $("#controledit").validate();  
    	});
    </script>
</head>
<body>
<div data-role="page"> 
　<div data-role="header" data-position="fixed">　
    <a href="__URL__/index" rel="external" data-rel="back" data-role="button" data-icon="back">后退</a>
    <div style="text-align:center;" >修改调度</div>   
    <a href="#" data-role="button" data-icon="refresh">刷新</a></div> 
　 <div data-role="content">
    <form method="post" action="__URL__/update" data-ajax="false" id="controledit">
    <!-- 
        <input type="hidden" name="shipper" id="shipper">
		<input type="hidden" name="provider" id="provider"> 
     -->
		<input	type="hidden" name="id" value="{$vo.id}"> 
		<input	type="hidden" name="ajax" value="1">    
     <table align="center">
            <tr>
            <td>
            <eq name="vo['payondelivery']" value="1">
              <spen style="color:red">本次调度为款到卸车</spen>
            </eq>
            </td>
            </tr>
			<tr>
			   <td><label for="shipper" class="select">发货方：</label></td>
			    <td>
			        <volist id="sub" name="subcompany"> 
                    <eq name="sub.subname" value="$vo.shipper">{$sub.subname}</eq>
                    </volist>
			    <!--  
			    <select name="shipper" id="shipper" data-mini="true" class="required">
			        <option value="">请选择</option>
			        <volist id="sub" name="subcompany"> 
                    <option value="{$sub.subname}" <eq name="sub.subname" value="$vo.shipper"> selected </eq>>{$sub.subname}</option>
                    </volist>
				 </select>
				 -->
			   </td>
			</tr>
			<tr>
			   <td><label for="customer" class="select">客户：</label></td>
			    <td>
			            <volist name="list6" id="vos">
						<eq name="vos.id" value="$vo.customer">{$vos.customername}</eq>
						</volist>
			    <!--  
			    <select name="customer" id="customer" data-mini="true"  class="required">
			        <option value="">请选择</option>
			         <volist name="list6" id="vos">
						<option value="{$vos.id}" <eq name="vos.id" value="$vo.customer"> selected </eq>>{$vos.customername}</option>
						</volist>
				 </select>
				 -->
			   </td>
			</tr>
			<tr>
			   <td><label for="provider" class="select">供应商：</label></td>
			    <td>
			        <volist name="list2" id="provider">
					<eq name="provider.id" value="$vo['provider']">{$provider.providername} </eq>
					</volist>
			    <!--  
			    <select name="provider" id="provider" data-mini="true"  class="required">
			        <option value="">请选择</option>
			          <volist name="list2" id="provider">
					<option <eq name="provider.id" value="$vo['provider']"> selected </eq> value="{$provider.id}"> {$provider.providername} </option>
					</volist>
				 </select>
				 -->
			   </td>
			</tr>
			<tr>
			   <td><label for="carrier" class="select">承运方：</label></td>
			    <td>
			          <volist name="list3" id="Carrier">
					  <eq name="Carrier.id" value="$vo['carrier']">{$Carrier.carriername} </eq>
					  </volist>
			    <!--  
			    <select name="carrier" id="carrier" data-mini="true"  class="required">
			        <option value="">请选择</option>
			          <volist name="list3" id="Carrier">
					     <option <eq name="Carrier.id" value="$vo['carrier']"> selected </eq> value="{$Carrier.id}"> {$Carrier.carriername} </option>
					  </volist>
				 </select>
				 -->
			   </td>
			</tr>
			<tr>
			   <td><label for="product" class="select">产品名称：</label></td>
			    <td>
			        <volist name="goods" id="vos">
					   <eq name="vos.goodsname" value="$vo['product']">{$vos.goodsname} </eq>
					</volist>
			    <!-- 
			    <select name="product" id="product" data-mini="true"  class="required">
			        <option value="">请选择</option>
			        <volist name="goods" id="vos">
					    <option <eq name="vos.goodsname" value="$vo['product']"> selected </eq> value="{$vos.goodsname}"> {$vos.goodsname} </option>
					</volist>
				 </select>
				  -->
			   </td>
			</tr>
			
			<tr>
			   <td><label for="start" class="select">起运地：</label></td>
			    <td><select name="start" id="start" data-mini="true"  class="required">
			        <option value="">请选择</option>
			          <volist name="freight" id="vos">
					     <option value="{$vos.startaddress}" <eq name="vos.startaddress" value="$vo.start" >selected</eq>>{$vos.startaddress}</option>
					  </volist>
				 </select>
			   </td>
			</tr>
			<tr>
			   <td><label for="destination" class="select">目的地：</label></td>
			    <td><select name="destination" id="destination" data-mini="true"  class="required">
			        <option value="">请选择</option>
			          <volist name="end" id="Freight">
					     <option value="{$Freight.endaddress}" <eq name="Freight.endaddress" value="$vo.destination" >selected</eq>>{$Freight.endaddress}</option>
					  </volist>
				 </select>
			   </td>
			</tr>
			<tr>
			   <td><label for="useid" class="select">接车人：</label></td>
			    <td><select name="userid" id="userid" data-mini="true"  class="required">
			        <option value="">请选择</option>
			          <volist name="user" id="User">
					     <option value="{$User.fullname}" <eq name="User.fullname" value="$vo.userid" >selected</eq>>{$User.fullname}</option>
					  </volist>
				 </select>
			   </td>
			</tr>
			<tr>
			  <td><label for="carno">车牌号：</label></td>
			  <td><input name="carno" id="carno" type="text" value="{$vo.carno}" required/></td>
			</tr>
			<tr>
			   <td><label for="carstat" class="select">车辆状态：</label></td>
			    <td><select name="carstat" id="carstat" data-mini="true" >
				  <!-- 车辆状态为2表示车待发货，等待输入吨数 -->
				  <eq name="vo.carstat" value="0">
					<option value="0" selected>--请选择--</option>
					<else />
					<option value="0">--请选择--</option>
					</eq>
					<eq name="vo.carstat" value="3">
					<option value="3" selected>已发货</option>
					<else />
					<option value="3">已发货</option>
					</eq>
				 </select>
			   </td>
			</tr>
			<tr>
			  <td><label for="eweight">毛重：</label></td>
			  <td><input name="eweight" id="eweight" type="number" value="{$vo.eweight}"/></td>
			</tr>
			<tr>
			  <td><label for="sweight">皮重：</label></td>
			  <td><input name="sweight" id="sweight" type="number" value="{$vo.sweight}"/></td>
			</tr>
			<tr>
			   <td><label>备注：</label></td>
			   <td><textarea name="note" cols="56" style="width: 360px;" rows="3">{$vo.note}</textarea></td>
			</tr>
			<tr>
			<td colspan="2">
			<div data-type="horizontal" data-role="controlgroup"  style="text-align:center;">
			<input type="submit" value="保存" />
			<a href="__URL__/index" rel="external" data-rel="back" data-role="button" />取消</td>
			</div>
			</tr>
</table>
</div> 
</body>
</html>

